<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<div class="post single" id="post-<?php the_ID(); ?>">
		<h2 class="posttitle"><?php the_title(); ?></h2>
        
		<div class="postcontent">

          <p class="clean adsense">
                <script type="text/javascript"><!--
                google_ad_client = "ca-pub-7920726685064722";
                /* [ucd.fm]文章页 */
                google_ad_slot = "2448255239";
                google_ad_width = 468;
                google_ad_height = 60;
                //-->
                </script>
                <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
                <a href="http://www.0x65.io/" title="0x65"><img style="" src="<?php bloginfo('template_url'); ?>/img/0x65.jpg"></a>
            </p>
            <p class="clean"><?php the_tags( '<p>' . __('Tags:', 'kubrick') . ' ', ', ', '</p>'); ?></p>
			<?php the_content(); ?>
			<?php wp_link_pages('before=<p id="postpages">文章分页&after=</p>'); ?>
            
			<p class="clean">
			<!-- AddThis Button BEGIN -->
			<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
            <a class="addthis_button_sinaweibo"></a>
			<a class="addthis_button_douban"></a>
			<a class="addthis_button_googlereader"></a>
			<a class="addthis_button_qzone"></a>
			<a class="addthis_button_kaixin"></a>
            <a class="addthis_button_twitter"></a>
			<a class="addthis_button_facebook"></a>
			<a class="addthis_button_delicious"></a>
			<a class="addthis_button_compact"></a>
			</div>
			<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
			<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=uulele"></script>
			<!-- AddThis Button END -->
			</p>
			
			<div class="clean contentinfo">  
                <p>               
						<?php printf('本文发布于 %1$s 归档于 %2$s.',get_the_time('Y-m-d H:i:s'), get_the_category_list(', ')); ?>
						<?php printf("通过 <a href='%s'>RSS 2.0</a> 订阅.", get_post_comments_feed_link()); ?> 

						<?php if ( comments_open() ) { ?>
							
							<?php
				                echo '欢迎 <a href="#respond">畅谈宝贵的看法</a>.';
				            ?>

						<?php } elseif ( !comments_open() ) { ?>
						
							<?php echo '望见谅,暂时无法发表看法.'; ?>

						<?php } ?>
                </p>
			</div>
			
		</div>
		
	</div>
	<?php comments_template(); // Get wp-comments.php template ?>
<?php
	endwhile;
	else : 
		echo walleve_404_message(); 
	endif;
?>
	<?php if(!(is_page() || is_single()) ){ ?>
		<div id="pagenav">
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		</div>
	<?php } ?>
</div>
<?php walleve_sidebar() ?>
<?php get_footer(); ?>
